package portal.monitor.dao.mapper;

import portal.monitor.dao.MonitorRelated;

import java.util.List;

public interface MonitorRelatedMapper {

    int insert(MonitorRelated record);

    int deleteByPrimaryKey(Integer relatedId);

    int deleteByHostId(Integer hostId);
    
    int deleteByGroupId(Integer groupId);

    int updateByPrimaryKey(MonitorRelated record);

    MonitorRelated selectByPrimaryKey(Integer relatedId);

    List<MonitorRelated> selectByHostId(Integer hostId);

    List<MonitorRelated> selectAll();
    
    public List<MonitorRelated> selectByGroupId(Integer groupId);
}